import 'package:dio/dio.dart';
import 'package:flutter/cupertino.dart';
import 'package:love_app/enum/login_status.dart';
import 'package:love_app/enum/responst_status.dart';

/// 发起dio请求后返回的模型
class ResponseModel{
  Response response; // 请求响应
  Map data; // 响应结果
  Map toJsonModel; // 要转换为model的数据
  ResponseStatusType status; // 请求的是否成功
  LoginStatus loginStatus; // 登录状态是否失效

  ResponseModel({@required this.data, @required this.toJsonModel, @required this.response, @required this.status, @required this.loginStatus});
}